package com.jie.client.core;

import com.jie.client.core.handler.ClientHandler;
import com.jie.client.service.entity.model.User;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author XieZhiJie
 * @date 2022/04/22 14:50
 */
public class ClientApplication {

    public static String COOKIE = "";

    /**
     * 设置完后只读, 不修改
     */
    public static User USER;

    /**
     * 客户端状态
     */
    public static boolean CLIENT_STATE = true;

    /**
     * 记录正在打开的view的map
     */
    public static final Map<String, Object> VIEW_MAP = new ConcurrentHashMap<>();

    public static void start() {
        ClientHandler.run();
    }

}
